<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite + Vue</title>
  </head>
  <body>
    <div id="app"></div>
    <script type="module" src="/src/main.js"></script>
    <script>
      /* 
        1. import { useStore } from 'vuex'
        2. const store = useStore()
        3. store.state.name 获取变量
        4. store.commit('changeName') 修改变量
        5. store.dispatch('changeNameAsync') 异步修改变量
        6. const { name } = toRefs(store.state) 获取并创建响应式数据
      */
    </script>
  </body>
</html>
